
			<div class="container">   
				<div id="slide">
				<div class="page-header" style="position:relative;">
					<h3>Slides</h3>
				</div>
					<div class="row-fluid">
						<div class="span10">
							<ul class="horizontal">
                            <?php if($this->tank_auth->is_url('slide/add')){ ?>
								<li><a href="<?php echo site_url('slide/add');?>" class="btn">Add Slide</a></li>
                            <?php } ?>
							</ul>
						</div>
					</div>
					<?php
					if(empty($hasil)){
							echo "<table class='table table-striped'>
								<thead>
									<tr>
										<td>Slide Name</td>
										<td>Image</td>
										<td>Description</td>
										<td>Status</td>
									</tr>
								<thead>
							</table>";
					}else{
					?>
						<table class="table table-striped">
							<thead>
								<tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" class="chk_boxes" type="checkbox" value="$row -> slide_id" /></td>
									<td>Slide Name</td>
                                    <td>Image</td>
                                    <td>Description</td>
                                    <?php if($this->tank_auth->is_url('slide/updatedata') || $this->tank_auth->is_url('slide/deletedata')){ ?>
										<td>Action</td>
                                    <?php } ?>
                                    <td>Status</td>
								</tr>
							</thead>
							<?php foreach ($hasil as $row): ?>
								<tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" class="chk_boxes1" type="checkbox" value="$row -> slide_id" /></td>
									<td><?php echo $row -> slide_name ?></td>
                                    <?php if($row->slide_image == NULL){ ?>
                                    <td><img style="padding:3px; border:#666 1px solid; " width="40px" height="40px" src="/commerce/assets/img/no-image-100x100.png"/></td>
                                    <?php }else{ ?>
									<td><img style="padding:3px; border:#666 1px solid; " width="40px" height="40px" src="<?php echo base_url();?>data/slide/<?php echo $row -> slide_image?>"/>  </td>
                                    <?php } ?>
									<td><?php echo $row -> slide_description ?></td>
                                    <td><?php if ($row->status == "1") { ?>
										  Enabled
										  <?php } else { ?>
										  Disabled
									<?php } ?></td>
									<?php if($this->tank_auth->is_url('slide/updatedata')){ ?>
											<td><?php echo anchor('slide/updatedata/'.$row->slide_id, '<i class="icon-edit"></i>', 'title = "Edit"') ;?>
									<?php } ?>
                                    <?php if($this->tank_auth->is_url('slide/deletedata')){ ?>
                                        <?php echo anchor('slide/deletedata/'.$row->slide_id, '<i class="icon-trash"></i>', 'title = "Delete" onclick="return confirmDelete();"'); ?></td>
                                    <?php } ?>         
								</tr>
							<?php endforeach; ?> 
						</table>
					<?php
					}
					?>
                    <center>
                      <?php echo $pagination; ?>
                    </center>
				</div>
			</div>
        
        <script type="text/javascript" language="javascript">
			$(function() {
  				$('.chk_boxes').click(function(){
					var chk = $(this).attr('checked')?true:false;
					$('.chk_boxes1').attr('checked',chk);
				});
			});
		</script> 
		
		